import {
	listCabinetByIdc
} from '@/api/cabinet'
const store = {
	state: {
		cabinetOptions: [],
	},
	getters: {
		getcabinetOptions(state) {
			return state.cabinetOptions
		}
	},
	mutations: {
		UPDATE_CABINET_OPTIONS(state, data) {
			state.cabinetOptions = data
		}
	},
	actions: {
		setcabinetOptions({
			commit
		},idcid) {
			listCabinetByIdc(idcid)
				.then((response => {
					commit('UPDATE_CABINET_OPTIONS', response)
				}))
		}
	}
}


export default store
